/*
 * Copyright (C) 2016 Jonathon Love
 */


.jmv-variable-editor .hover-header {
    width: 100%;
    top: 0px;
    position: absolute;
}

.jmv-variable-editor {
    background-color: #F8F8F8 ;
    width: 100% ;
    height: 300px ;
    transition: height .2s, border-top .2s, background-color .2s ;
    box-sizing: border-box;
    border-top: 1px solid #CCCCCC ;
    position: relative;
}

.jmv-variable-editor.sub-editor-open {
    background-color: #e0e0e0
}

.jmv-variable-editor.sub-editor-open.hover {
    background-color: #cccccc
}

.jmv-variable-editor.hidden {
    height: 0 ;
    transition-timing-function: ease, step-end ;
    border-top: 1px solid #F0F0F0 ;
}

.jmv-variable-editor-main {
    position: relative ;
    margin: 0 auto ;
    width: 700px ;
    height: 100% ;
    box-sizing: border-box;
    overflow: hidden ;
}

.jmv-variable-editor-ok {
    position: absolute ;
    right: 12px ;
    top: 12px ;
    width: 40px ;
    height: 40px ;
    color: #BBBBBB ;
    border: 4px solid #BBBBBB ;
    border-radius: 20px ;
    box-sizing: border-box;
    font-size: 24px ;
    text-align: center;
    transition: color .2s, border-color .2s ;
}

.jmv-variable-editor-revert {
    position: absolute ;
    right: 16px ;
    top: 58px ;
    width: 26px ;
    height: 26px ;
    color: #BBBBBB ;
    border: 3px solid #BBBBBB ;
    border-radius: 13px ;
    box-sizing: border-box;
    font-size: 13px ;
    text-align: center;
    font-weight: bold ;
    transition: opacity .4s ;
    opacity: 0 ;
}

.jmv-variable-editor-revert span {
    line-height: 20px;
    vertical-align: top;
}

.jmv-variable-editor-revert.apply {
    opacity: 1 ;
    color: #AAAAAA ;
    border-color: #AAAAAA;
}

.jmv-variable-editor-ok span.mif-checkmark {
    color: #AAAAAA ;
    border-color: #AAAAAA;
}

.jmv-variable-editor-ok.apply {
    border-color: #AAAAAA;
}

.jmv-variable-editor-ok span {
    position: absolute ;
    left: 0 ;
    width: 100% ;
    line-height: 32px;
    vertical-align: top;
    /*margin-top: 4px ;*/
    transition: opacity .4s ;
}

.jmv-variable-editor-ok:not(.apply) span.mif-checkmark {
    opacity: 0 ;
}

.jmv-variable-editor-ok.apply span.mif-arrow-up {
    opacity: 0 ;
}

.jmv-variable-editor-button-left,
.jmv-variable-editor-button-right {
    position: absolute ;
    width: 40px ;
    height: 40px ;
    top: 130px ;
    font-size: 40px ;
    color: #BBBBBB ;
    transition: opacity .2s ;
}

.jmv-variable-editor-button-left span,
.jmv-variable-editor-button-right span {
    line-height: 40px;
    vertical-align: top;
}

.jmv-variable-editor-button-left.hidden,
.jmv-variable-editor-button-right.hidden {
    opacity: 0 ;
}

.jmv-variable-editor-ok:hover,
.jmv-variable-editor-revert:hover,
.jmv-variable-editor-button-left:hover,
.jmv-variable-editor-button-right:hover {
    color: #999999 ;
    border-color: #999999 ;
}

.jmv-variable-editor-button-left {
    left: 10px ;
}

.jmv-variable-editor-button-right {
    right: 10px ;
}

.jmv-variable-editor-widget.multiple-variables .single-variable-support {
    visibility: hidden;
}

.jmv-variable-editor-widget {
    position: absolute ;
    padding: 8px 100px 10px 100px ;
    width: 100% ;
    height: 300px;
    box-sizing: border-box;
    display: flex ;
    flex-direction: column;
}

.jmv-variable-editor-widget:not(.inactive) {
    transition: left .3s, opacity .3s ;
}

.jmv-variable-editor-widget .desc-box {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.jmv-variable-editor-widget .desc-box .multi-var-info {
    display: flex;
    flex-direction: row;
    visibility: hidden;
    position: absolute;
    width: 500px;
    border-bottom: 1px solid #dfdfdf;
    align-items: center;
}

.jmv-variable-editor-widget.multiple-variables .desc-box .multi-var-info {
    visibility: visible;
}

.jmv-variable-editor-main[data-type='none'] .jmv-variable-editor-widget.multiple-variables .desc-box .multi-var-info {
    visibility: hidden;
}

.jmv-variable-editor-main[data-type='filter'] .jmv-variable-editor-widget.multiple-variables .desc-box .multi-var-info {
    visibility: hidden;
}

.jmv-variable-editor-widget .desc-box .multi-var-info .scroll-wrapper {
    box-sizing: content-box;
    overflow: hidden;
    height: 36px;
    /*margin-top: 3px;*/
}

.jmv-variable-editor-widget .desc-box .multi-var-info .multi-var-info-list {
    display: flex;
    flex-direction: row;
    margin: 5px 0 7px 0;
    overflow-x: scroll;
    padding-bottom: 100px;
    align-items: center;
}

.jmv-variable-editor-widget .desc-box .multi-var-info .multi-var-info-list .jmv-variable-list-item {
    background-color: #E8E8E8;
    margin-right: 3px;
    min-width: unset;
}

.jmv-variable-editor-widget .desc-box .multi-var-info .multi-var-info-list .jmv-variable-list-item > .label {
    margin-right: 7px;
    max-width: 77px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.jmv-variable-editor-widget .desc-box .multi-var-info .multi-var-info-label {
    margin: 0 5px 0 2px;
    color: #888888;
    font-weight: 100;
}

.jmv-variable-editor-widget-title {
    font-size: 150% ;
    color: #555555 ;
    background-color: white;
    padding: 3px 4px 3px 4px;
    margin: 3px 37px 0px 0px;
    border: 1px solid #CCCCCC;
    flex-shrink: 0;
    flex-grow: 0;
}

.jmv-variable-editor-widget-description {
    font-size: 100% ;
    color: #555555 ;
    background-color: white;
    padding: 3px 4px 3px 4px;
    margin: 3px 37px 0px 0px;
    border: 1px solid #CCCCCC;
    max-height: 3.2em;
    overflow: auto;
    cursor: text;
    flex-shrink: 0;
    flex-grow: 0;
}

.label-box {
    display: flex;
    flex-direction: row;
    margin-right: 37px;
    align-items: center;
    flex-shrink: 0;
    flex-grow: 0;
    margin-bottom: 3px;
}

.label-box .label-spacer {
    flex: 1;
    align-items: center;
}

.imported-as {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.label-box .imported-as > .label {
    color: grey;
    margin-right: 5px;
    font-weight: 100;
    font-size: 90%;
}

.label-box .imported-as > .name {
    color: grey;
    margin-right: 5px;
    font-size: 90%;
    font-weight: 500;
}

.label-box .jmv-variable-editor-widget-label {
    font-size: 110%;
    color: #555555;
    padding: 0px 4px 0px 2px;
    margin: 0px;
    font-weight: 100;
}

.jmv-variable-editor-widget-body {
    flex-grow: 1;
    display: flex;
    overflow: hidden;
    padding: 10px 10px 10px 0px;
}

.jmv-datavarwidget-body {
    flex-grow: 1;
    display: flex;
}

.jmv-variable-editor-widget-footer {
    margin-left: 2px;
    margin-right: 37px;
}

.jmv-variable-editor-main[data-type='output'] .jmv-variable-editor-widget-title {
    margin-right: 10px;
}

.jmv-variable-editor-main[data-type='output'] .jmv-variable-editor-widget-description {
    margin-right: 10px;
}

.jmv-variable-editor-main[data-type='computed'] .jmv-variable-editor-widget-footer {
    margin-right: 10px;
}

.jmv-variable-editor-main[data-type='computed'] .jmv-variable-editor-widget-title {
    margin-right: 10px;
}

.jmv-variable-editor-main[data-type='computed'] .jmv-variable-editor-widget-description {
    margin-right: 10px;
}

.jmv-variable-editor-main[data-type='computed'] .label-box {
    margin-right: 10px
}

.jmv-variable-editor-main[data-type='filter'] .label-box .jmv-variable-editor-widget-label {
    margin-left: 3px;
}



.jmv-variable-editor-widget-footer > .status-box {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    float: right;
}

.jmv-variable-editor-widget-footer > .status-box > .status {
    color: #757575;
    margin: 2px 0px 2px 3px;
    padding-right: 3px;
    height: 18px;
    line-height: 18px;
    text-align: right;

}

.jmv-variable-editor-widget-footer .status-box:hover .active {
    background-color: #bcbcbc;
}

.jmv-variable-editor-widget-footer .active.retain-levels {
    background-color: #8cc18c;
}

.jmv-variable-editor-widget-footer .status-box:hover .active.retain-levels {
    background-color: #659c65;
}

.jmv-variable-editor-widget-footer .active.retain-levels .switch {
    left: 9px;
}

.jmv-variable-editor-widget-footer .active {
    width: 25px;
    height: 14px;
    background-color: #cccccc;
    border-radius: 9px;
    margin: 0px 0px 0px 2px;
}

.jmv-variable-editor-widget-footer .active .switch {
    position: relative;
    width: 12px;
    height: 10px;
    left: 0px;
    background-color: #ffffff;
    border-radius: inherit;
    margin: 2px 2px 2px 2px;
    transition: .1s left ease-out;
}
